<html><body><%
// Invoke and display the JNDIView.list(true) output through a JMX client.
util.Helper.withJndiCtx{ ctx ->
	def jmxClient = ctx.lookup("jmx/invoker/RMIAdaptor")
	def mbeanName = new javax.management.ObjectName("jboss:service=JNDIView")
	def methodName = "list"
	def params = [true] as Object[]
	def signature = ["boolean"] as String[]
	def ret = jmxClient.invoke(mbeanName, methodName, params, signature)
	println(ret)
}
%></body></html>